import request from '@/utils/request'

// 查询告警日志--未解决列表
export function listUnresolved(query) {
  return request({
    url: '/alarm/log/list',
    method: 'get',
    params: query
  })
}

// 查询告警日志--未解决详细
export function getUnresolved(id) {
  return request({
    url: '/alarm/log/' + id,
    method: 'get'
  })
}

// 新增告警日志--未解决
export function addUnresolved(data) {
  return request({
    url: '/alarm/log',
    method: 'post',
    data: data
  })
}

// 修改告警日志--未解决
export function updateUnresolved(data) {
  return request({
    url: '/alarm/log',
    method: 'put',
    data: data
  })
}

// 删除告警日志--解决
export function delUnresolved(id) {
  return request({
    url: '/alarm/log/deleter?id=' + id,
    method: 'delete'
  })
}

// 导出告警日志--未解决
export function exportUnresolved(query) {
  return request({
    url: '/alarm/log',
    method: 'get',
    params: query
  })
}
